//
//  BQMineReceiveHeaderView.m
//  BeeQuick
//
//  Created by student on 2017/7/16.
//  Copyright © 2017年 BecomeRich. All rights reserved.
//

#import "BQMineReceiveHeaderView.h"

@implementation BQMineReceiveHeaderView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self= [super initWithFrame:frame]) {
        [self setupUI];
        self.backgroundColor = [UIColor groupTableViewBackgroundColor];
    }
    return self;
}

- (void)setupUI{
    
    UIView *view = [[UIView alloc]init];
    view.backgroundColor = [UIColor whiteColor];
    [self addSubview:view];
    [view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.trailing.leading.equalTo(self);
        make.top.equalTo(self).offset(8);
        make.bottom.equalTo(self).offset(-8);
    }];
    UIButton *addBtn = [[UIButton alloc]init];
    [addBtn setImage:[UIImage imageNamed:@"v2_my_address_icon"] forState:UIControlStateNormal];
    [addBtn setTitle:@"定位到当前位置" forState:UIControlStateNormal];
    [addBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [view addSubview:addBtn];
    [addBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(view);
    }];
}
@end
